package com.test.enums;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import net.sf.json.JSONObject;

@Data
@ToString
@ApiModel(value = "基础返回类", description = "基础返回类")
public class Replay <T> {
    /**
     * 返回状态码
     */
    @ApiModelProperty(value = "状态码", required = true)
    private int code;
    /**
     * 总条数
     */
    @ApiModelProperty(value = "数据量")
    private long count;
    /**
     * 提示信息
     */
    @ApiModelProperty(value = "信息")
    private String msg;
    /**
     * 返回数据
     */
    @ApiModelProperty(value = "数据")
    private T data;
}